﻿using Mono.Cecil;
using Sai.Core.Introspection;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Sai.Cecil
{
    public static class AssemblyReferenceExtensions
    {
        public static void AddTo(this AssemblyNameReference ar, IntrospectedAssembly assembly)
        {
            assembly.Add(new AssemblyReference { Name = ar.Name, Version = ar.Version.ToString() });
        }
    }
}
